/**
 * @author Maximilian Csuk
 * @author Konrad Paumann
 * @author Bernhard Denner
 */

public abstract class BinOp implements Node {
	
	private Node leftChild;
	private Node rightChild;
	
	protected BinOp(Node leftChild, Node rightChild) {
		this.leftChild = leftChild;
		this.rightChild = rightChild;
	}
	/**
	 * Returns the left child node
	 */
	protected Node getLeftChild() {
		return leftChild;
	}
	/**
	 * Returns the right child node
	 */
	protected Node getRightChild() {
		return rightChild;
	}

	/**
	 * Sets the child nodes
	 */
	public void setNodes(Node left, Node right) {
		this.leftChild = left;
		this.rightChild = right;
	}

}
